package com.sky.service;

import com.github.pagehelper.Page;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    PageResult findPage(DishPageQueryDTO searchDto);

    Integer deleteById(List<Long> ids);

    Integer save(DishDTO dto);

    DishVO  findById(Long id);

    Integer updateDish(DishDTO dto);

    Result changeStatus(Integer id, Integer status);

    List<DishVO> findByCategoryId(String categoryId);

    List<DishVO> findDishByCategoryId(Integer categoryId);

}
